<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTopicAnswerCountTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('topic_answer_count', function (Blueprint $table) {
        $table->increments('id');
        $table->integer('t_id')->nullable()->comment('题目id');
        $table->integer('a_id')->nullable()->comment('选项id');
        $table->integer('tac_id')->nullable()->comment('回答人id');
        $table->softDeletes();
        $table->timestamps();
    });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
